package Com.javaserver.servlet;

import Com.javaserver.bean.staff;
import Com.javaserver.dao.staffserver;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@WebServlet("/staupate")
public class staffUpdataserverlet extends HttpServlet {
     staffserver staUpdata=new staffserver();

    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
         String id=req.getParameter("id");

        staff staf=new staff();
//        if (staUpdata.staupate(staf) ) {
//            req.getSession().setAttribute("msg", "修改成功");
//            resp.sendRedirect(req.getContextPath() + "/.jsp");
//        }else {
//            req.getSession().setAttribute("msg", "修改失败");
//            resp.sendRedirect(req.getContextPath() + "/.jsp");
//        }
//    }
}}
